<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span id="local-6989586621680882740"><span id="local-6989586621680882741"></span></span><span class="hs-comment">{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998

\section{Haskell abstract syntax definition}

This module glues together the pieces of the Haskell abstract syntax,
which is declared in the various \tr{Hs*} modules.  This module,
therefore, is almost nothing but re-exporting.
-}</span><span>
</span><span id="line-11"></span><span>
</span><span id="line-12"></span><span class="hs-pragma">{-# LANGUAGE DeriveDataTypeable #-}</span><span>
</span><span id="line-13"></span><span class="hs-pragma">{-# LANGUAGE StandaloneDeriving #-}</span><span>
</span><span id="line-14"></span><span class="hs-pragma">{-# LANGUAGE FlexibleContexts #-}</span><span>
</span><span id="line-15"></span><span class="hs-pragma">{-# LANGUAGE UndecidableInstances #-}</span><span> </span><span class="hs-comment">-- Wrinkle in Note [Trees That Grow]</span><span>
</span><span id="line-16"></span><span>                                      </span><span class="hs-comment">-- in module GHC.Hs.Extension</span><span>
</span><span id="line-17"></span><span class="hs-pragma">{-# LANGUAGE ConstraintKinds #-}</span><span>
</span><span id="line-18"></span><span class="hs-pragma">{-# LANGUAGE TypeFamilies #-}</span><span>
</span><span id="line-19"></span><span class="hs-pragma">{-# LANGUAGE FlexibleInstances #-}</span><span> </span><span class="hs-comment">-- For deriving instance Data</span><span>
</span><span id="line-20"></span><span>
</span><span id="line-21"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.Hs</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-22"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="GHC.Hs.Binds.html"><span class="hs-identifier">GHC.Hs.Binds</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-23"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="GHC.Hs.Decls.html"><span class="hs-identifier">GHC.Hs.Decls</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-24"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="GHC.Hs.Expr.html"><span class="hs-identifier">GHC.Hs.Expr</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-25"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="GHC.Hs.ImpExp.html"><span class="hs-identifier">GHC.Hs.ImpExp</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-26"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="GHC.Hs.Lit.html"><span class="hs-identifier">GHC.Hs.Lit</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-27"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="GHC.Hs.Pat.html"><span class="hs-identifier">GHC.Hs.Pat</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-28"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="GHC.Hs.Type.html"><span class="hs-identifier">GHC.Hs.Type</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-29"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="GHC.Hs.Utils.html"><span class="hs-identifier">GHC.Hs.Utils</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-30"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="GHC.Hs.Doc.html"><span class="hs-identifier">GHC.Hs.Doc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-31"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="GHC.Hs.Extension.html"><span class="hs-identifier">GHC.Hs.Extension</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-32"></span><span>        </span><span class="annot"><a href="GHC.Types.Basic.html#Fixity"><span class="hs-identifier">Fixity</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-33"></span><span>
</span><span id="line-34"></span><span>        </span><span class="annot"><a href="GHC.Hs.html#HsModule"><span class="hs-identifier">HsModule</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-35"></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-36"></span><span>
</span><span id="line-37"></span><span class="hs-comment">-- friends:</span><span>
</span><span id="line-38"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-39"></span><span>
</span><span id="line-40"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.Decls.html"><span class="hs-identifier">GHC.Hs.Decls</span></a></span><span>
</span><span id="line-41"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.Binds.html"><span class="hs-identifier">GHC.Hs.Binds</span></a></span><span>
</span><span id="line-42"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.Expr.html"><span class="hs-identifier">GHC.Hs.Expr</span></a></span><span>
</span><span id="line-43"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.ImpExp.html"><span class="hs-identifier">GHC.Hs.ImpExp</span></a></span><span>
</span><span id="line-44"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.Lit.html"><span class="hs-identifier">GHC.Hs.Lit</span></a></span><span>
</span><span id="line-45"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.Extension.html"><span class="hs-identifier">GHC.Hs.Extension</span></a></span><span>
</span><span id="line-46"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.Pat.html"><span class="hs-identifier">GHC.Hs.Pat</span></a></span><span>
</span><span id="line-47"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.Type.html"><span class="hs-identifier">GHC.Hs.Type</span></a></span><span>
</span><span id="line-48"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Basic.html"><span class="hs-identifier">GHC.Types.Basic</span></a></span><span> </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="GHC.Types.Basic.html#Fixity"><span class="hs-identifier">Fixity</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Basic.html#WarningTxt"><span class="hs-identifier">WarningTxt</span></a></span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-49"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.Utils.html"><span class="hs-identifier">GHC.Hs.Utils</span></a></span><span>
</span><span id="line-50"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.Doc.html"><span class="hs-identifier">GHC.Hs.Doc</span></a></span><span>
</span><span id="line-51"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Hs.Instances.html"><span class="hs-identifier">GHC.Hs.Instances</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- For Data instances</span><span>
</span><span id="line-52"></span><span>
</span><span id="line-53"></span><span class="hs-comment">-- others:</span><span>
</span><span id="line-54"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html"><span class="hs-identifier">GHC.Utils.Outputable</span></a></span><span>
</span><span id="line-55"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.SrcLoc.html"><span class="hs-identifier">GHC.Types.SrcLoc</span></a></span><span>
</span><span id="line-56"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Unit.Module.html"><span class="hs-identifier">GHC.Unit.Module</span></a></span><span> </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="GHC.Unit.Module.Name.html#ModuleName"><span class="hs-identifier">ModuleName</span></a></span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-57"></span><span>
</span><span id="line-58"></span><span class="hs-comment">-- libraries:</span><span>
</span><span id="line-59"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Data.html#"><span class="hs-identifier">Data.Data</span></a></span><span> </span><span class="hs-keyword">hiding</span><span> </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="../../base/src/Data.Data.html#Fixity"><span class="hs-identifier">Fixity</span></a></span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-60"></span><span>
</span><span id="line-61"></span><span class="hs-comment">-- | Haskell Module</span><span>
</span><span id="line-62"></span><span class="hs-comment">--</span><span>
</span><span id="line-63"></span><span class="hs-comment">-- All we actually declare here is the top-level structure for a module.</span><span>
</span><span id="line-64"></span><span class="hs-keyword">data</span><span> </span><span id="HsModule"><span class="annot"><a href="GHC.Hs.html#HsModule"><span class="hs-identifier hs-var">HsModule</span></a></span></span><span>
</span><span id="line-65"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span id="HsModule"><span class="annot"><a href="GHC.Hs.html#HsModule"><span class="hs-identifier hs-var">HsModule</span></a></span></span><span> </span><span class="hs-special">{</span><span>
</span><span id="line-66"></span><span>      </span><span id="hsmodLayout"><span class="annot"><span class="annottext">HsModule -&gt; LayoutInfo
</span><a href="GHC.Hs.html#hsmodLayout"><span class="hs-identifier hs-var hs-var">hsmodLayout</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.SrcLoc.html#LayoutInfo"><span class="hs-identifier hs-type">LayoutInfo</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-67"></span><span>        </span><span class="hs-comment">-- ^ Layout info for the module.</span><span>
</span><span id="line-68"></span><span>        </span><span class="hs-comment">-- For incomplete modules (e.g. the output of parseHeader), it is NoLayoutInfo.</span><span>
</span><span id="line-69"></span><span>      </span><span id="hsmodName"><span class="annot"><span class="annottext">HsModule -&gt; Maybe (Located ModuleName)
</span><a href="GHC.Hs.html#hsmodName"><span class="hs-identifier hs-var hs-var">hsmodName</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.SrcLoc.html#Located"><span class="hs-identifier hs-type">Located</span></a></span><span> </span><span class="annot"><a href="GHC.Unit.Module.Name.html#ModuleName"><span class="hs-identifier hs-type">ModuleName</span></a></span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-70"></span><span>        </span><span class="hs-comment">-- ^ @Nothing@: \&quot;module X where\&quot; is omitted (in which case the next</span><span>
</span><span id="line-71"></span><span>        </span><span class="hs-comment">--     field is Nothing too)</span><span>
</span><span id="line-72"></span><span>      </span><span id="hsmodExports"><span class="annot"><span class="annottext">HsModule -&gt; Maybe (Located [LIE GhcPs])
</span><a href="GHC.Hs.html#hsmodExports"><span class="hs-identifier hs-var hs-var">hsmodExports</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.SrcLoc.html#Located"><span class="hs-identifier hs-type">Located</span></a></span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Hs.ImpExp.html#LIE"><span class="hs-identifier hs-type">LIE</span></a></span><span> </span><span class="annot"><a href="GHC.Hs.Extension.html#GhcPs"><span class="hs-identifier hs-type">GhcPs</span></a></span><span class="hs-special">]</span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-73"></span><span>        </span><span class="hs-comment">-- ^ Export list</span><span>
</span><span id="line-74"></span><span>        </span><span class="hs-comment">--</span><span>
</span><span id="line-75"></span><span>        </span><span class="hs-comment">--  - @Nothing@: export list omitted, so export everything</span><span>
</span><span id="line-76"></span><span>        </span><span class="hs-comment">--</span><span>
</span><span id="line-77"></span><span>        </span><span class="hs-comment">--  - @Just []@: export /nothing/</span><span>
</span><span id="line-78"></span><span>        </span><span class="hs-comment">--</span><span>
</span><span id="line-79"></span><span>        </span><span class="hs-comment">--  - @Just [...]@: as you would expect...</span><span>
</span><span id="line-80"></span><span>        </span><span class="hs-comment">--</span><span>
</span><span id="line-81"></span><span>        </span><span class="hs-comment">--</span><span>
</span><span id="line-82"></span><span>        </span><span class="hs-comment">--  - 'GHC.Parser.Annotation.AnnKeywordId's : 'GHC.Parser.Annotation.AnnOpen'</span><span>
</span><span id="line-83"></span><span>        </span><span class="hs-comment">--                                   ,'GHC.Parser.Annotation.AnnClose'</span><span>
</span><span id="line-84"></span><span>
</span><span id="line-85"></span><span>        </span><span class="hs-comment">-- For details on above see note [Api annotations] in GHC.Parser.Annotation</span><span>
</span><span id="line-86"></span><span>      </span><span id="hsmodImports"><span class="annot"><span class="annottext">HsModule -&gt; [LImportDecl GhcPs]
</span><a href="GHC.Hs.html#hsmodImports"><span class="hs-identifier hs-var hs-var">hsmodImports</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Hs.ImpExp.html#LImportDecl"><span class="hs-identifier hs-type">LImportDecl</span></a></span><span> </span><span class="annot"><a href="GHC.Hs.Extension.html#GhcPs"><span class="hs-identifier hs-type">GhcPs</span></a></span><span class="hs-special">]</span><span class="hs-special">,</span><span>
</span><span id="line-87"></span><span>        </span><span class="hs-comment">-- ^ We snaffle interesting stuff out of the imported interfaces early</span><span>
</span><span id="line-88"></span><span>        </span><span class="hs-comment">-- on, adding that info to TyDecls/etc; so this list is often empty,</span><span>
</span><span id="line-89"></span><span>        </span><span class="hs-comment">-- downstream.</span><span>
</span><span id="line-90"></span><span>      </span><span id="hsmodDecls"><span class="annot"><span class="annottext">HsModule -&gt; [LHsDecl GhcPs]
</span><a href="GHC.Hs.html#hsmodDecls"><span class="hs-identifier hs-var hs-var">hsmodDecls</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Hs.Decls.html#LHsDecl"><span class="hs-identifier hs-type">LHsDecl</span></a></span><span> </span><span class="annot"><a href="GHC.Hs.Extension.html#GhcPs"><span class="hs-identifier hs-type">GhcPs</span></a></span><span class="hs-special">]</span><span class="hs-special">,</span><span>
</span><span id="line-91"></span><span>        </span><span class="hs-comment">-- ^ Type, class, value, and interface signature decls</span><span>
</span><span id="line-92"></span><span>      </span><span id="hsmodDeprecMessage"><span class="annot"><span class="annottext">HsModule -&gt; Maybe (Located WarningTxt)
</span><a href="GHC.Hs.html#hsmodDeprecMessage"><span class="hs-identifier hs-var hs-var">hsmodDeprecMessage</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.SrcLoc.html#Located"><span class="hs-identifier hs-type">Located</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Basic.html#WarningTxt"><span class="hs-identifier hs-type">WarningTxt</span></a></span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-93"></span><span>        </span><span class="hs-comment">-- ^ reason\/explanation for warning/deprecation of this module</span><span>
</span><span id="line-94"></span><span>        </span><span class="hs-comment">--</span><span>
</span><span id="line-95"></span><span>        </span><span class="hs-comment">--  - 'GHC.Parser.Annotation.AnnKeywordId's : 'GHC.Parser.Annotation.AnnOpen'</span><span>
</span><span id="line-96"></span><span>        </span><span class="hs-comment">--                                   ,'GHC.Parser.Annotation.AnnClose'</span><span>
</span><span id="line-97"></span><span>        </span><span class="hs-comment">--</span><span>
</span><span id="line-98"></span><span>
</span><span id="line-99"></span><span>        </span><span class="hs-comment">-- For details on above see note [Api annotations] in GHC.Parser.Annotation</span><span>
</span><span id="line-100"></span><span>      </span><span id="hsmodHaddockModHeader"><span class="annot"><span class="annottext">HsModule -&gt; Maybe LHsDocString
</span><a href="GHC.Hs.html#hsmodHaddockModHeader"><span class="hs-identifier hs-var hs-var">hsmodHaddockModHeader</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.Hs.Doc.html#LHsDocString"><span class="hs-identifier hs-type">LHsDocString</span></a></span><span>
</span><span id="line-101"></span><span>        </span><span class="hs-comment">-- ^ Haddock module info and description, unparsed</span><span>
</span><span id="line-102"></span><span>        </span><span class="hs-comment">--</span><span>
</span><span id="line-103"></span><span>        </span><span class="hs-comment">--  - 'GHC.Parser.Annotation.AnnKeywordId's : 'GHC.Parser.Annotation.AnnOpen'</span><span>
</span><span id="line-104"></span><span>        </span><span class="hs-comment">--                                   ,'GHC.Parser.Annotation.AnnClose'</span><span>
</span><span id="line-105"></span><span>
</span><span id="line-106"></span><span>        </span><span class="hs-comment">-- For details on above see note [Api annotations] in GHC.Parser.Annotation</span><span>
</span><span id="line-107"></span><span>   </span><span class="hs-special">}</span><span>
</span><span id="line-108"></span><span>     </span><span class="hs-comment">-- ^ 'GHC.Parser.Annotation.AnnKeywordId's</span><span>
</span><span id="line-109"></span><span>     </span><span class="hs-comment">--</span><span>
</span><span id="line-110"></span><span>     </span><span class="hs-comment">--  - 'GHC.Parser.Annotation.AnnModule','GHC.Parser.Annotation.AnnWhere'</span><span>
</span><span id="line-111"></span><span>     </span><span class="hs-comment">--</span><span>
</span><span id="line-112"></span><span>     </span><span class="hs-comment">--  - 'GHC.Parser.Annotation.AnnOpen','GHC.Parser.Annotation.AnnSemi',</span><span>
</span><span id="line-113"></span><span>     </span><span class="hs-comment">--    'GHC.Parser.Annotation.AnnClose' for explicit braces and semi around</span><span>
</span><span id="line-114"></span><span>     </span><span class="hs-comment">--    hsmodImports,hsmodDecls if this style is used.</span><span>
</span><span id="line-115"></span><span>
</span><span id="line-116"></span><span>     </span><span class="hs-comment">-- For details on above see note [Api annotations] in GHC.Parser.Annotation</span><span>
</span><span id="line-117"></span><span>
</span><span id="line-118"></span><span id="local-6989586621680882671"><span id="local-6989586621680882673"><span id="local-6989586621680882675"><span id="local-6989586621680882677"><span id="local-6989586621680882679"><span id="local-6989586621680882681"><span id="local-6989586621680882683"><span id="local-6989586621680882685"><span id="local-6989586621680882687"><span id="local-6989586621680882689"><span id="local-6989586621680882691"><span id="local-6989586621680882693"><span id="local-6989586621680882708"><span id="local-6989586621680882726"><span class="hs-keyword">deriving</span><span> </span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="../../base/src/Data.Data.html#Data"><span class="hs-identifier hs-type">Data</span></a></span><span> </span><span class="annot"><a href="GHC.Hs.html#HsModule"><span class="hs-identifier hs-type">HsModule</span></a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span>
</span><span id="line-119"></span><span>
</span><span id="line-120"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680882641"><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier hs-type">Outputable</span></a></span><span> </span><span class="annot"><a href="GHC.Hs.html#HsModule"><span class="hs-identifier hs-type">HsModule</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-121"></span><span>
</span><span id="line-122"></span><span>    </span><span id="local-6989586621680882606"><span class="annot"><span class="annottext">ppr :: HsModule -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var hs-var hs-var hs-var">ppr</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Hs.html#HsModule"><span class="hs-identifier hs-type">HsModule</span></a></span><span> </span><span class="annot"><span class="annottext">LayoutInfo
</span><span class="hs-identifier">_</span></span><span> </span><span class="annot"><span class="annottext">Maybe (Located ModuleName)
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span> </span><span class="annot"><span class="annottext">Maybe (Located [LIE GhcPs])
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621680882604"><span class="annot"><span class="annottext">[LImportDecl GhcPs]
</span><a href="#local-6989586621680882604"><span class="hs-identifier hs-var">imports</span></a></span></span><span> </span><span id="local-6989586621680882603"><span class="annot"><span class="annottext">[LHsDecl GhcPs]
</span><a href="#local-6989586621680882603"><span class="hs-identifier hs-var">decls</span></a></span></span><span> </span><span class="annot"><span class="annottext">Maybe (Located WarningTxt)
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621680882602"><span class="annot"><span class="annottext">Maybe LHsDocString
</span><a href="#local-6989586621680882602"><span class="hs-identifier hs-var">mbDoc</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-123"></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Maybe LHsDocString -&gt; SDoc
forall t. Outputable t =&gt; Maybe t -&gt; SDoc
</span><a href="GHC.Hs.html#pp_mb"><span class="hs-identifier hs-var">pp_mb</span></a></span><span> </span><span class="annot"><span class="annottext">Maybe LHsDocString
</span><a href="#local-6989586621680882602"><span class="hs-identifier hs-var">mbDoc</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%24%24"><span class="hs-operator hs-var">$$</span></a></span><span> </span><span class="annot"><span class="annottext">[LImportDecl GhcPs] -&gt; SDoc
forall t. Outputable t =&gt; [t] -&gt; SDoc
</span><a href="GHC.Hs.html#pp_nonnull"><span class="hs-identifier hs-var">pp_nonnull</span></a></span><span> </span><span class="annot"><span class="annottext">[LImportDecl GhcPs]
</span><a href="#local-6989586621680882604"><span class="hs-identifier hs-var">imports</span></a></span><span>
</span><span id="line-124"></span><span>                    </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%24%24"><span class="hs-operator hs-var">$$</span></a></span><span> </span><span class="annot"><span class="annottext">[LHsDecl GhcPs] -&gt; SDoc
forall t. Outputable t =&gt; [t] -&gt; SDoc
</span><a href="GHC.Hs.html#pp_nonnull"><span class="hs-identifier hs-var">pp_nonnull</span></a></span><span> </span><span class="annot"><span class="annottext">[LHsDecl GhcPs]
</span><a href="#local-6989586621680882603"><span class="hs-identifier hs-var">decls</span></a></span><span>
</span><span id="line-125"></span><span>
</span><span id="line-126"></span><span>    </span><span class="annot"><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Hs.html#HsModule"><span class="hs-identifier hs-type">HsModule</span></a></span><span> </span><span class="annot"><span class="annottext">LayoutInfo
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span id="local-6989586621680882598"><span class="annot"><span class="annottext">Located ModuleName
</span><a href="#local-6989586621680882598"><span class="hs-identifier hs-var">name</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621680882597"><span class="annot"><span class="annottext">Maybe (Located [LIE GhcPs])
</span><a href="#local-6989586621680882597"><span class="hs-identifier hs-var">exports</span></a></span></span><span> </span><span id="local-6989586621680882596"><span class="annot"><span class="annottext">[LImportDecl GhcPs]
</span><a href="#local-6989586621680882596"><span class="hs-identifier hs-var">imports</span></a></span></span><span> </span><span id="local-6989586621680882595"><span class="annot"><span class="annottext">[LHsDecl GhcPs]
</span><a href="#local-6989586621680882595"><span class="hs-identifier hs-var">decls</span></a></span></span><span> </span><span id="local-6989586621680882594"><span class="annot"><span class="annottext">Maybe (Located WarningTxt)
</span><a href="#local-6989586621680882594"><span class="hs-identifier hs-var">deprec</span></a></span></span><span> </span><span id="local-6989586621680882593"><span class="annot"><span class="annottext">Maybe LHsDocString
</span><a href="#local-6989586621680882593"><span class="hs-identifier hs-var">mbDoc</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-127"></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[SDoc] -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#vcat"><span class="hs-identifier hs-var">vcat</span></a></span><span> </span><span class="hs-special">[</span><span>
</span><span id="line-128"></span><span>            </span><span class="annot"><span class="annottext">Maybe LHsDocString -&gt; SDoc
forall t. Outputable t =&gt; Maybe t -&gt; SDoc
</span><a href="GHC.Hs.html#pp_mb"><span class="hs-identifier hs-var">pp_mb</span></a></span><span> </span><span class="annot"><span class="annottext">Maybe LHsDocString
</span><a href="#local-6989586621680882593"><span class="hs-identifier hs-var">mbDoc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-129"></span><span>            </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Maybe (Located [LIE GhcPs])
</span><a href="#local-6989586621680882597"><span class="hs-identifier hs-var">exports</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-130"></span><span>              </span><span class="annot"><span class="annottext">Maybe (Located [LIE GhcPs])
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc
</span><a href="#local-6989586621680882591"><span class="hs-identifier hs-var">pp_header</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;where&quot;</span></span><span class="hs-special">)</span><span>
</span><span id="line-131"></span><span>              </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span id="local-6989586621680882589"><span class="annot"><span class="annottext">Located [LIE GhcPs]
</span><a href="#local-6989586621680882589"><span class="hs-identifier hs-var">es</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[SDoc] -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#vcat"><span class="hs-identifier hs-var">vcat</span></a></span><span> </span><span class="hs-special">[</span><span>
</span><span id="line-132"></span><span>                           </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc
</span><a href="#local-6989586621680882591"><span class="hs-identifier hs-var">pp_header</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="GHC.Utils.Outputable.html#lparen"><span class="hs-identifier hs-var">lparen</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-133"></span><span>                           </span><span class="annot"><span class="annottext">Int -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#nest"><span class="hs-identifier hs-var">nest</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[SDoc] -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#fsep"><span class="hs-identifier hs-var">fsep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">SDoc -&gt; [SDoc] -&gt; [SDoc]
</span><a href="GHC.Utils.Outputable.html#punctuate"><span class="hs-identifier hs-var">punctuate</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="GHC.Utils.Outputable.html#comma"><span class="hs-identifier hs-var">comma</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(LIE GhcPs -&gt; SDoc) -&gt; [LIE GhcPs] -&gt; [SDoc]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">LIE GhcPs -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Located [LIE GhcPs] -&gt; [LIE GhcPs]
forall l e. GenLocated l e -&gt; e
</span><a href="GHC.Types.SrcLoc.html#unLoc"><span class="hs-identifier hs-var">unLoc</span></a></span><span> </span><span class="annot"><span class="annottext">Located [LIE GhcPs]
</span><a href="#local-6989586621680882589"><span class="hs-identifier hs-var">es</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-134"></span><span>                           </span><span class="annot"><span class="annottext">Int -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#nest"><span class="hs-identifier hs-var">nest</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">4</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;) where&quot;</span></span><span class="hs-special">)</span><span>
</span><span id="line-135"></span><span>                          </span><span class="hs-special">]</span><span class="hs-special">,</span><span>
</span><span id="line-136"></span><span>            </span><span class="annot"><span class="annottext">[LImportDecl GhcPs] -&gt; SDoc
forall t. Outputable t =&gt; [t] -&gt; SDoc
</span><a href="GHC.Hs.html#pp_nonnull"><span class="hs-identifier hs-var">pp_nonnull</span></a></span><span> </span><span class="annot"><span class="annottext">[LImportDecl GhcPs]
</span><a href="#local-6989586621680882596"><span class="hs-identifier hs-var">imports</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-137"></span><span>            </span><span class="annot"><span class="annottext">[LHsDecl GhcPs] -&gt; SDoc
forall t. Outputable t =&gt; [t] -&gt; SDoc
</span><a href="GHC.Hs.html#pp_nonnull"><span class="hs-identifier hs-var">pp_nonnull</span></a></span><span> </span><span class="annot"><span class="annottext">[LHsDecl GhcPs]
</span><a href="#local-6989586621680882595"><span class="hs-identifier hs-var">decls</span></a></span><span>
</span><span id="line-138"></span><span>          </span><span class="hs-special">]</span><span>
</span><span id="line-139"></span><span>      </span><span class="hs-keyword">where</span><span>
</span><span id="line-140"></span><span>        </span><span id="local-6989586621680882591"><span class="annot"><span class="annottext">pp_header :: SDoc -&gt; SDoc
</span><a href="#local-6989586621680882591"><span class="hs-identifier hs-var hs-var">pp_header</span></a></span></span><span> </span><span id="local-6989586621680882582"><span class="annot"><span class="annottext">SDoc
</span><a href="#local-6989586621680882582"><span class="hs-identifier hs-var">rest</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Maybe (Located WarningTxt)
</span><a href="#local-6989586621680882594"><span class="hs-identifier hs-var">deprec</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-141"></span><span>           </span><span class="annot"><span class="annottext">Maybe (Located WarningTxt)
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="#local-6989586621680882581"><span class="hs-identifier hs-var">pp_modname</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%2B%3E"><span class="hs-operator hs-var">&lt;+&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="#local-6989586621680882582"><span class="hs-identifier hs-var">rest</span></a></span><span>
</span><span id="line-142"></span><span>           </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span id="local-6989586621680882579"><span class="annot"><span class="annottext">Located WarningTxt
</span><a href="#local-6989586621680882579"><span class="hs-identifier hs-var">d</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[SDoc] -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#vcat"><span class="hs-identifier hs-var">vcat</span></a></span><span> </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="#local-6989586621680882581"><span class="hs-identifier hs-var">pp_modname</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Located WarningTxt -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">Located WarningTxt
</span><a href="#local-6989586621680882579"><span class="hs-identifier hs-var">d</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="#local-6989586621680882582"><span class="hs-identifier hs-var">rest</span></a></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-143"></span><span>
</span><span id="line-144"></span><span>        </span><span id="local-6989586621680882581"><span class="annot"><span class="annottext">pp_modname :: SDoc
</span><a href="#local-6989586621680882581"><span class="hs-identifier hs-var hs-var">pp_modname</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;module&quot;</span></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%2B%3E"><span class="hs-operator hs-var">&lt;+&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">Located ModuleName -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">Located ModuleName
</span><a href="#local-6989586621680882598"><span class="hs-identifier hs-var">name</span></a></span><span>
</span><span id="line-145"></span><span>
</span><span id="line-146"></span><span id="local-6989586621680882772"><span class="annot"><a href="GHC.Hs.html#pp_mb"><span class="hs-identifier hs-type">pp_mb</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier hs-type">Outputable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680882772"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680882772"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span></span><span>
</span><span id="line-147"></span><span id="pp_mb"><span class="annot"><span class="annottext">pp_mb :: forall t. Outputable t =&gt; Maybe t -&gt; SDoc
</span><a href="GHC.Hs.html#pp_mb"><span class="hs-identifier hs-var hs-var">pp_mb</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span id="local-6989586621680882576"><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621680882576"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">t -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621680882576"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-148"></span><span class="annot"><a href="GHC.Hs.html#pp_mb"><span class="hs-identifier hs-var">pp_mb</span></a></span><span> </span><span class="annot"><span class="annottext">Maybe t
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="GHC.Utils.Outputable.html#empty"><span class="hs-identifier hs-var">empty</span></a></span><span>
</span><span id="line-149"></span><span>
</span><span id="line-150"></span><span id="local-6989586621680882771"><span class="annot"><a href="GHC.Hs.html#pp_nonnull"><span class="hs-identifier hs-type">pp_nonnull</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier hs-type">Outputable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680882771"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="#local-6989586621680882771"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span></span><span>
</span><span id="line-151"></span><span id="pp_nonnull"><span class="annot"><span class="annottext">pp_nonnull :: forall t. Outputable t =&gt; [t] -&gt; SDoc
</span><a href="GHC.Hs.html#pp_nonnull"><span class="hs-identifier hs-var hs-var">pp_nonnull</span></a></span></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="GHC.Utils.Outputable.html#empty"><span class="hs-identifier hs-var">empty</span></a></span><span>
</span><span id="line-152"></span><span class="annot"><a href="GHC.Hs.html#pp_nonnull"><span class="hs-identifier hs-var">pp_nonnull</span></a></span><span> </span><span id="local-6989586621680882572"><span class="annot"><span class="annottext">[t]
</span><a href="#local-6989586621680882572"><span class="hs-identifier hs-var">xs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[SDoc] -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#vcat"><span class="hs-identifier hs-var">vcat</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(t -&gt; SDoc) -&gt; [t] -&gt; [SDoc]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">t -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">[t]
</span><a href="#local-6989586621680882572"><span class="hs-identifier hs-var">xs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-153"></span></pre></body></html>